//
//  ImportantAreaCell.m
//  Utils
//
//  Created by enghou on 2018/6/13.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "ImportantIndurstryCell.h"

@interface ImportantIndurstryCell()

@property (weak, nonatomic) IBOutlet UIImageView *titleImageView;

@property (weak, nonatomic) IBOutlet UILabel *userNameLbl;

@property (weak, nonatomic) IBOutlet UILabel *dateLabel;

@property (weak, nonatomic) IBOutlet UILabel *belongingPoliticLbl;

@property (weak, nonatomic) IBOutlet UILabel *importAreaNameLbl;

@property (weak, nonatomic) IBOutlet UILabel *importAreaCategoryLbl;

@property (weak, nonatomic) IBOutlet UILabel *importAreaAddressLbl;

@end

@implementation ImportantIndurstryCell

-(void)setModel:(ImportantIndurstryItemModel *)model{
    _model = model;
    [self.titleImageView sd_setImageWithURL:[NSURL URLWithString:_model.imgUrl] placeholderImage:[UIImage imageNamed:@"img_enterprise"]];
    self.userNameLbl.text = _model.createUser;
    self.dateLabel.text = _model.createDate;
    self.belongingPoliticLbl.text = _model.nativePoliceStation;
    self.importAreaNameLbl.text = _model.name;
    self.importAreaCategoryLbl.text = _model.type.displayName;
    self.importAreaAddressLbl.text = _model.address;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
